package com.edu.contorller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CookieTest {


    @RequestMapping("/cookieTest")
    public String headerTest(@CookieValue("JSESSIONID") String sessionId){
        System.out.println(sessionId);
        return "index.jsp";
    }

}
